package com.qlmy.cn.utils

import java.text.SimpleDateFormat
import java.util.*

const val DEFAULT_PATTERN = "yyyy-MM-dd"
const val PATTERN_YYYY_MM = "yyyy-MM"

object DateUtils {
    fun getDefaultDateText(pattern: String = DEFAULT_PATTERN) = SimpleDateFormat(pattern).format(Date())
    fun getDayMin(dateString: String = getDefaultDateText()) = "$dateString 00:00:00"
    fun getDayMax(dateString: String = getDefaultDateText()) = "$dateString 23:59:59"
}